package com.kaili.pojo.dto.ewb;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author xjh
 * @ClassName GoodsDetailAddBean
 * @Description 开单物品实体类
 * @Date 下午2:13 18-5-23
 * @Version 1.0
 */
public class GoodsDetailAddBean {


    @NotEmpty(message = "货物名称不为空")
    @ApiModelProperty("货物名称")
    private String goodsName;

    @NotNull(message = "包装类型代码不为NULL")
    @ApiModelProperty("包装类型代码")
    private Integer packTypeCode;

    @NotNull(message = "件数不为NULL")
    @ApiModelProperty("件数")
    private Integer piece;

    @NotNull(message = "重量不为NULL")
    @ApiModelProperty("重量")
    private BigDecimal weight;

    @NotNull(message = "体积不为NULL")
    @ApiModelProperty("体积")
    private BigDecimal vol;

    @NotNull(message = "单价数量不为NULL")
    @ApiModelProperty("单价数量")
    private BigDecimal unitPrice;

    @NotNull(message = "单价单位代码不为NULL")
    @ApiModelProperty("单价单位代码")
    private Integer unitCode;

    @ApiModelProperty("运费")
    private BigDecimal freightCharge;

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Integer getPackTypeCode() {
        return packTypeCode;
    }

    public void setPackTypeCode(Integer packTypeCode) {
        this.packTypeCode = packTypeCode;
    }

    public Integer getPiece() {
        return piece;
    }

    public void setPiece(Integer piece) {
        this.piece = piece;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public BigDecimal getVol() {
        return vol;
    }

    public void setVol(BigDecimal vol) {
        this.vol = vol;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public Integer getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(Integer unitCode) {
        this.unitCode = unitCode;
    }

    public BigDecimal getFreightCharge() {
        return freightCharge;
    }

    public void setFreightCharge(BigDecimal freightCharge) {
        this.freightCharge = freightCharge;
    }
}
